"""djangoWukong URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    # 后台管理路由
    path('admin/', admin.site.urls),
    # 定义users路由
    path("api/users/", include("users.urls")),
    # 定义goods路由
    path("api/goods/", include("goods.urls")),
    # 定义homes路由
    path("api/homes/", include("homes.urls")),
    # 定义goods_cate路由
    path("api/goods_cate/", include("goods_cate.urls")),
    # 定义userInfo路由
    path("api/userInfo/", include("userInfo.urls")),
    # 定义admins路由
    path("api/admins/", include('admins.urls')),
    # 定义pay路由
    path("pay/", include('pay.urls')),
]
